package org.classg.order.client;

import org.classg.order.client.impl.EduClientImpl;
import org.classg.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-edu", fallback = EduClientImpl.class)
@Component
public interface EduClient {

    // 根据课程id查询课程数据
    @GetMapping("/eduservice/course/queryCourseById/{id}")
    CourseVo queryCourseById(@PathVariable("id") String id);
}
